package com.shigu.activity.enums;

/**
 * @Author:         沐风
 * @Descirption     活动类型
 * @CreateDate:     2019/8/31 11:47 AM
 */

public enum KeywordType {
    RealProduct(0,"实时新品"),
    HOTGOODS(1,"热销好货");

    public static KeywordType selByValue(int value){
        for(KeywordType pt: KeywordType.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }


    KeywordType(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

}
